﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace diedaiqi
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] array = { 1, 2, 3, 4, 5, 6, 7 };//数组
            foreach (int i in array)//迭代器
            {
                Console.WriteLine(i);
            }

            string addres = "福建|龙岩|新罗|闽大";//分割字符串
            char[] res = { '|' };
            var add = addres.Split(res);

            for (int i = 0; i < add.Length; i++)
            {
                Console.WriteLine(add[i]);
            }
        }
    }
}
